<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/templates/common/taglib.jsp"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <title>${title }</title>
    <link rel="stylesheet" href="${basePath}/static/bootstrap/css/bootstrap.css"/>
    <link href="${basePath}/static/css/basic.css" rel="stylesheet" type="text/css">
    <link href="${basePath}/static/css/login.css" rel="stylesheet" type="text/css">
    <link href="${basePath}/static/css/list.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="${basePath}/static/js/jquery.min.js"></script>
	<script type="text/javascript" src="${basePath}/static/My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript" src="${basePath}/static/page/jqPaginator/jqPaginator.js"></script>
    
    <style type="text/css">
    	.formTable_tr td{
    		font-size: 14px;
    		text-align: center;
    	}
    	
    </style>
    
</head>
<body>
<%@include file="/WEB-INF/templates/common/header.jsp"%>
	<!------导航条-->
	<%@include file="/WEB-INF/templates/common/navigation.jsp"%>
<div class="list_main lay_out" class="clearfix">
    <div class="list_DH">
        <%@include file="/WEB-INF/templates/common/inhospitalDisease.jsp"%>
    </div>
    <div class="list_NR">
        <div class="loc">
            <h3 style="margin:0" >医师统计</h3>
        </div>
        <div class="list_con_table">
            <div class="search_table" style="position: relative; z-index: 999;">
                <ul class="clearfix" style="margin-bottom:0;">
                <li class="Label_1" >出院日期：&nbsp;</li>
                    <li class="Label_4" style="text-align:left;padding-left:3px;width:280px">
                    	<input class="Wdate input" style="width:120px;" type=""  name='startTime' id='outHospitalStartDate' value='' onFocus="WdatePicker()" />
                    	<span>&nbsp;-&nbsp;</span>
                    	<input class="Wdate input" type="text" style="width:120px;"  name='endTime' id='outHospitalEndDate' value='' onFocus="WdatePicker()" />
                    </li>
                    <li class="Label_1" style="margin-left: 50px;">出院科室：&nbsp;</li>
     				<li class="Label_2">
         				<input type="text" id="cyksSelectId" value="" name="sysstj.cyks" class="input_box"  />   
	 				</li>
                  <li class="Label_5">
                        <div class="right" style="text-align:right">
                            <a onclick="tj()">统计</a>
                        </div>
                    </li>
                    
                </ul>
            </div> 
            <table class="Search_tableList" cellpadding="0" cellspacing="0">

			<tr>
				<th class="tdLabel_4">诊疗医师</th>
				<th class="tdLabel_4">所在科室</th>
				<th class="tdLabel_4">出院人数</th>
				<th class="tdLabel_4">死亡人数</th>
				<th class="tdLabel_4">住院天数</th>
				<th class="tdLabel_4">手术人数</th>
				<!-- 
					<th width="9%">统计结果</th>
				 -->
			</tr>
			<tbody id="tbody">
			<tr>
				<td class="tdLabel_5">金燕志</td>
				<td class="tdLabel_5">101011-呼吸内科病房</td>
				<td class="tdLabel_5">30</td>
				<td class="tdLabel_5"></td>
				<td class="tdLabel_5">7.75</td>
				<td class="tdLabel_5">61</td>
			</tr>
			
			<tr>
				<td class="tdLabel_5">李诗兰</td>
				<td class="tdLabel_5">101031-感染性疾病科病房</td>
				<td class="tdLabel_5">88</td>
				<td class="tdLabel_5">1</td>
				<td class="tdLabel_5">10.5</td>
				<td class="tdLabel_5">48</td>
			</tr>
			
			<tr>
				<td class="tdLabel_5">刘玉洁</td>
				<td class="tdLabel_5">101041-心内科东一病房</td>
				<td class="tdLabel_5">111</td>
				<td class="tdLabel_5"></td>
				<td class="tdLabel_5">4.3</td>
				<td class="tdLabel_5">21</td>
			</tr>
			
			<tr>
				<td class="tdLabel_5">谢峰</td>
				<td class="tdLabel_5">101042-心内科东二病房</td>
				<td class="tdLabel_5">27</td>
				<td class="tdLabel_5"></td>
				<td class="tdLabel_5">6.7</td>
				<td class="tdLabel_5">30</td>
			</tr>
			
			<tr>
				<td class="tdLabel_5">杨榕</td>
				<td class="tdLabel_5">101045-CCU</td>
				<td class="tdLabel_5">19</td>
				<td class="tdLabel_5"></td>
				<td class="tdLabel_5">3.4</td>
				<td class="tdLabel_5">17</td>
			</tr>
			
			<tr>
				<td class="tdLabel_5">余梅</td>
				<td class="tdLabel_5">103012-妇科西病房</td>
				<td class="tdLabel_5">16</td>
				<td class="tdLabel_5">1</td>
				<td class="tdLabel_5">3.6</td>
				<td class="tdLabel_5">94</td>
			</tr>
			
			<tr>
				<td class="tdLabel_5">李智</td>
				<td class="tdLabel_5">103021-产科病房</td>
				<td class="tdLabel_5">49</td>
				<td class="tdLabel_5"></td>
				<td class="tdLabel_5">6.3</td>
				<td class="tdLabel_5">115</td>
			</tr>
			
			<tr>
				<td class="tdLabel_5">翟丽英</td>
				<td class="tdLabel_5">104021-小儿循环科病房</td>
				<td class="tdLabel_5">54</td>
				<td class="tdLabel_5"></td>
				<td class="tdLabel_5">8.4</td>
				<td class="tdLabel_5">140</td>
			</tr>
			
			<tr>
				<td class="tdLabel_5">张雪娅</td>
				<td class="tdLabel_5">102091-手足外科病房</td>
				<td class="tdLabel_5">44</td>
				<td class="tdLabel_5"></td>
				<td class="tdLabel_5">8.3</td>
				<td class="tdLabel_5">155</td>
			</tr>
			
			<tr>
				<td class="tdLabel_5">冶青萍</td>
				<td class="tdLabel_5">102111-理疗科病房</td>
				<td class="tdLabel_5">56</td>
				<td class="tdLabel_5">1</td>
				<td class="tdLabel_5">8.5</td>
				<td class="tdLabel_5">46</td>
			</tr>
			</tbody>
		</table>
        
        </div>
        <!--
        	 <div class="pageList">
	            <ul class="pagination clearfix" id="page_plus"></ul>
	            <div class="pagination">
	                <div>总共：<b id="totalPage">0</b> 条信息    当前页是第 <b id="currentPage">0/0</b>　页</div>
	            </div>
      	  </div>
         -->
    </div>
</div>
<!------页脚部分--------->
<%@include file="/WEB-INF/templates/common/footer.jsp"%>

<!--JS部分-->
<script type="text/javascript">
$(function(){
	$("#tbody").hide();
	
	hideDiv();
	function hideDiv(){
		$("#ysDiv").hide();
		
	}
	if(true){
		$("#zrrname").click(function(){
			$("#mainContentYS").attr("src", "bingan/basy/selectZLYS.jsp");
			hideDiv();
			$("#ysDiv").show();
			return false;
		});
	}
	
	$("a[id^=basyy]").click(function() {
		var bsm = $(this).attr("bsm");
		$.post("bingan/getbaseInfoForFrame", 
			{selectParam : bsm, mark : '2'},
			function(data) {
				if (typeof (data) == "string") {
					alert(data);
					return false;
				}
				//调用父类的元素
				var jq_fuALink = $(parent.document).find("input[id='basy']");
				jq_fuALink.trigger("click");
		}, 'json');
		return false;
	});


	
	});
	function tj() {
		var sbtEle=document.getElementById("tjimg");
		sbtEle.style.display="block";
		var a = document.getElementById("startTime").value;
		var b = document.getElementById("endTime").value;
		var startY = $("#startYear").val();
		var startM = $("#startMonth").val();
		var startD = $("#startDay").val();
		var endY = $("#endYear").val();
		var endM = $("#endMonth").val();
		var endD = $("#endDay").val();
		if(startY != "" && (startY < 1 || startY > 200)){
			alert("年龄范围(年)请输入1~200之间的数字");
		}else if(endY != "" && (endY < 1 || endY > 200)){
			alert("年龄范围(年)请输入1~200之间的数字");
		}else if(startM != "" && (startM < 1 || startM > 12)){
			alert("年龄范围(月)请输入1~12之间的数字");
		}else if(endM != "" && (endM < 1 || endM > 12)){
			alert("年龄范围(月)请输入1~12之间的数字");
		}else if (startD != "" && (startD < 1 || startD > 31)){
			alert("年龄范围(日)请输入1~31之间的数字");
		}else if(endD != "" && (endD < 1 || endD > 31)){
			alert("年龄范围(日)请输入1~31之间的数字");
		}else{
			if (a == "" && b == "") {
				alert("请选择开始或结束时间！");
			}else {
			
				if(a == "" && b != ""){
					$("#startTime").val(b);
				}
				if(a != "" && b == ""){
					$("#endTime").val(a);
				}
				document.form1.action = "excel/countByZrr.action";
				document.form1.target="_self";
				document.form1.submit();
			}
		}
	}
	function exportMsg(){
		var sbtEle=document.getElementById("tjimg");
		sbtEle.style.display="block";
		var a = document.getElementById("startTime").value;
		var b = document.getElementById("endTime").value;
		var startY = $("#startYear").val();
		var startM = $("#startMonth").val();
		var startD = $("#startDay").val();
		var endY = $("#endYear").val();
		var endM = $("#endMonth").val();
		var endD = $("#endDay").val();
		if(startY != "" && (startY < 1 || startY > 200)){
			alert("年龄范围(年)请输入1~200之间的数字");
		}else if(endY != "" && (endY < 1 || endY > 200)){
			alert("年龄范围(年)请输入1~200之间的数字");
		}else if(startM != "" && (startM < 1 || startM > 12)){
			alert("年龄范围(月)请输入1~12之间的数字");
		}else if(endM != "" && (endM < 1 || endM > 12)){
			alert("年龄范围(月)请输入1~12之间的数字");
		}else if (startD != "" && (startD < 1 || startD > 31)){
			alert("年龄范围(日)请输入1~31之间的数字");
		}else if(endD != "" && (endD < 1 || endD > 31)){
			alert("年龄范围(日)请输入1~31之间的数字");
		}else{
			if (a == "" && b == "") {
				alert("请选择开始或结束时间！");
			}else {
			
				if(a == "" && b != ""){
					$("#startTime").val(b);
				}
				if(a != "" && b == ""){
					$("#endTime").val(a);
				}
				document.form1.action = "excel/exportDoctStatistical.action";
				document.form1.target="_blank";
				document.form1.submit();
			}
		}
	}
	
	function changePage(currentPage) {
		var sbtEle=document.getElementById("tjimg");
		sbtEle.style.display="block";
		document.form1.action = "http://localhost:8080/CMDP/excel/countByZrr.action?pageCode="
				+ currentPage;
		document.form1.target="_self";
		document.form1.submit();
	}
	function countDetailMsg(idcard){
		document.form1.action = "http://localhost:8080/CMDP/excel/getAllTJINFO3.action?zrr=" + idcard;
		document.form1.target="_blank";
		document.form1.submit();
	}

	function tj() {
		$("#tbody").show();
	}
	
</script>

</body>
</html>